<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生修改</title>
</head>
<body>
  <form method="post">
  {% csrf_token %}
      姓名:<input type="text" name="name" value="{{ stu.name }}" ><br>
      性别:<input type="radio" name="sex" value="0">男
          <input type="radio" name="sex" value="1">女<br>
      年龄:<input type="text" name="age" value="{{ stu.age }}"><br>
      手机号:<input type="text" name="phone" value="{{ stu.phone }}" ><br>
      专业:<select name="magor">
             {% for i in college%}
              <option value="{{ i.id }}">{{ i.name }}</option>
             {% endfor %}
          </select>
         <br>
         <input type="submit" value="提交">
  </form>
</body>
</html>